package Tz1;
public class Bird implements Fly{
    private String name;
    private int age;

    public Bird(){}
    public Bird(String name,int age){
        this.age=age;
        this.name=name;
    }

    @Override
    public void fly() {
        System.out.println(this.name+"飞");
    }
}
